﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BusinessService.Plugin.Helper
{
   public class SnowIdUtil
    {
        /// <summary>
        /// 获取雪花ID
        /// </summary>
        /// <returns></returns>
        public static long GetId()
        {
        return SnowFlakeSingle.Instance.NextId();//也可以在程序中直接获取ID
        }
    }
}
